package com.wuxiaofan.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author wuxiaofan
 * @date 2021/11/18 10:36 上午
 */
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class Admin3Application {

    public static void main(String[] args) {
        SpringApplication.run(Admin3Application.class,args);
    }


    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }
}
